-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the deprecation warning of stdext::checked_array_iterator
#1769
base: master
Are you sure you want to change the base?
Fix the deprecation warning of stdext::checked_array_iterator
#1769
Conversation
This should use |
It looks like the rest of the code base is targeting something much older than C++20. I think this is fine as is. |
@barcharcraz Can you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have been testing this internally in a conan recipe applying this patch and it works for us.
Is it possible to merge this into main? |
I recently had to address this when some of our devs upgraded to MSVC 17.12.x and this solution was no longer a workable solution for us. The solution I ended up deploying with patch files in conan for our team were to modify containerstream.h, producerconsumerstream.h and rawptrstream.h as per this patch file:
|
If it's helpful I can supply an alternate PR with this patch in it. just let me know. |
By adding a non-deprecated copy of
checked_array_iterator
.The implementation heavily relies on the implementation details of MSVC STL, but IMO this is OK since we only use it when
defined(_ITERATOR_DEBUG_LEVEL) && _ITERATOR_DEBUG_LEVEL != 0
.Fixes #1768.